package com.ht.pms.core.feign;

import com.ht.pms.core.dto.Result;
import com.ht.pms.core.dto.dingding.MsgFeignDto;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "msg-send-app")
@RequestMapping("/sendRequest")
public interface MsgFeign {
    @PostMapping(value = "/sendRequest", headers = {"app=PMS"}, consumes = "application/json; charset=utf-8", produces = "application/json; charset=utf-8")
    public Result sendRequest(@RequestBody MsgFeignDto msgFeignDto);

}
